#ifndef DEF_DRAWING
#define DEF_DRAWING


//color management. usage: color[C_JAUNE] for example
enum {
  C_NOIR, C_BLEU_FONCE, C_VERT_FONCE, C_CYAN_FONCE, C_ROUGE_FONCE,
  C_MAGENTA_FONCE, C_OCRE, C_GRIS_CLAIR, C_GRIS, C_BLEU, C_VERT,
  C_CYAN, C_ROUGE, C_MAGENTA, C_JAUNE, C_BLANC,
  
  NB_COULEURS
};


//prototypes :
inline void setPixel(int x, int y, Uint32 coul, SDL_Surface *ecran);	//drawing of a pixel
void rect(int x, int y, int w, int h, Uint32 coul, SDL_Surface *ecran);//draw a rectangle
void clearScr(Uint32 coul, SDL_Surface *ecran);
void lineHor(int x, int y, int w, Uint32 coul, SDL_Surface *ecran);		//draw a horizontal line
void lineVert(int x, int y, int h, Uint32 coul, SDL_Surface *ecran);
void initCouleurs(Uint32 *couleurs, SDL_Surface *ecran);		//initialization of the color management

#endif



